package cn.edu.scau.cmi.heyonglin.consistentComposite;
import java.util.Set;
import java.util.HashSet;
public abstract class ConsistentComponent {
	private Set<ConsistentComponent>person = new HashSet<ConsistentComponent>();
	ConsistentComponent Team=null;
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	abstract String doSomething();
	abstract ConsistentComponent getTeam();
	abstract ConsistentComponent addPerson(ConsistentComponent person);
	public Set<ConsistentComponent> getPerson() {
		// TODO Auto-generated method stub
		return person;
	}
}